<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="com.pojo.OUser,java.util.Map,java.util.List"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd 

">
<%
		OUser user=(OUser)session.getAttribute("user");
		String list = (String)request.getAttribute("list"); 
		List list1 = (List)request.getAttribute("list1"); 
%>
<html>
<head>
 <base href="<%=basePath%>">   
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>太原金属交易中心</title>       
  <meta http-equiv="pragma" content="no-cache">
  <meta http-equiv="cache-control" content="no-cache">
  <meta http-equiv="expires" content="0">    
  <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
  <meta http-equiv="description" content="This is my page">

<link rel="stylesheet" type="text/css" href="Assets/css/reset.css"/>
<script type="text/javascript" src="Assets/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="Assets/js/js_z.js"></script>
<link rel="stylesheet" type="text/css" href="Assets/css/thems.css">
<script type="text/javascript" language="javascript">

	function iFrameHeight() {
		var ifm = document.getElementById("iframecon");
		var subWeb = document.frames ? document.frames["iframepage"].document
				: ifm.contentDocument;
		if (ifm != null && subWeb != null) {
			ifm.height = subWeb.body.scrollHeight;
		}
	}
	window.setInterval("iFrameHeight()", 200);
	
	
	$(document).ready(function() {
		fun();
	});
	function fun(){
		//查看兑换明细

		var list = <%=list%>;
		console.log(list);
		var html="";
		var mast =5;
		if(list.length<5){
			mast=list.length;
		}
	
		for(var i=0;i<mast;i++){
			
			html+='<tr><td>'+list[i].ttype+'</td><td>*****</td><td>*****</td><td>'+list[i].wprice+'</td><td>'+list[i].wcount+'</td></tr>';
		}
		 
		$('#table').html(html);
	}
	function goodsChange(){
		var goods=$("#select1").val();
		var h="jsp/echart/kxingtu.html?goods="+goods;
		$('#iframecon').attr('src',h);
		//document.frames('iframepage').location.reload()
	}
	
</script>

</head>
<body>
<!--顶部-->
<div class="h_top">
	<div class="h_top_m">
        欢迎来到商品交易大厅网
        <span>
        	您好！<%=user.getUserID() %>
        </span>
    </div>
</div>
<!--顶部-->
<!--头部-->
<div class="header clearfix">
    <div class="logo"><a href="<%=basePath%>index.html"><img src="Assets/images/logo.png" alt=""/></a></div>
    <div class="tel"><!--img src="Assets/images/tel.png" alt="400-168-0000"--></div>
</div>
<div class="nav_bg">
	<ul class="nav clearfix">
        <li class="now"><a href="main.html">首页</a></li>
		  <li><a href="bypt.html">商品交易</a></li>
        <li><a href="member.html">我的账户</a></li>
    </ul>
</div>

 
<div class="space_hx">&nbsp;</div>
<div class="m_boxa clearfix">
	 <div id="page-wrapper">
						<select name="sp" id="select1" onchange="goodsChange()">
									<%
							for (int i =0;i<list1.size();i++) {
								Map mmp = (Map)list1.get(i);
								String selected = "";
								
								/* if (knowledgepoint.equals(ob.getType())) {
									selected = "selected='selected'";
								} */
						%>
						<option <%=selected%>><%=mmp.get("classname")%></option>
						<%
							}
						%> 
							</select>
			<iframe src="<%=basePath%>jsp/echart/kxingtu.html?goods=宝石"  marginheight="0" marginwidth="0" frameborder="0"
				scrolling="no" width="100%" height="100%" id="iframecon"
				name="iframepage" onLoad="iFrameHeight()"></iframe>
		</div>
 
</div>

<div class="space_hx">&nbsp;</div>
<!--div class="ads"><a href="login.html"><img src="Assets/upload/ads.jpg" alt="" border="0"/></a></div-->
<div class="space_hx">&nbsp;</div>
<div class="i_boxb clearfix">
	<!--返佣排行榜-->
	<div class="boxb_l">
    	<div class="box_h">
        	<span><img src="Assets/images/icon24.png" alt=""/><em>最新交易动态</em></span>
        </div>
        <div class="box_m">
        	<table border="0" cellpadding="0" cellspacing="0">
        	<thead>
              <tr>
                <th scope="col">交易类型</th>
                <th scope="col">客户姓名</th>
                <th scope="col">联系电话</th>
                <th scope="col">金额</th>
                <th scope="col">数量</th>
              </tr>
              </thead>
		       <tbody id="table">

				  </tbody>
            </table>
        </div>
    </div>
    <!--返佣排行榜-->
    <!--客户服务-->
    <div class="boxb_r">
    	<div class="kefu">
        	<div class="box_h"><span>客户服务</span></div>
            <ul class="box_m">
            	<li class="tel"><p>咨询热线：</p></li>
                <li class="email"><p>邮箱：</p></li>
                <li class="qq"><a href="">在线QQ客服</a></li>
            </ul>
        </div>
        <a href="" class="down"> </a>
    </div>
    <!--客户服务-->
</div>
<div class="space_hx">&nbsp;</div>
<div class="space_hx">&nbsp;</div>
<!--友情链接-->
<!--底部--> 
  <div class="space_hx">&nbsp;</div>
<div class="f_nav_bg">
	<dl class="f_nav clearfix">
    	<dt><img src="<%=basePath%>Assets/images/tel.png"  /></dt>
        <dd>
        	 
            <div class="tip" style="float:left; width:200px;">
            <span style="font-size:16px;">商品团队</span>
			<li>太原金属企业站</li> <li> 太原金属商城</li>  <li>太原金属会员网</li> 	 
            </div>
            
         <div class="tip" style="float:left; width:200px;">
            <span style="font-size:16px;">服务帮助</span>
			 
 <li><a href="news.html?classid=4">为什么选择我们</a></li>
 
 <li><a href="news.html?classid=3">网站声明</a></li>
 
 <li><a href="news.html?classid=2">公司公告</a></li>
 
 <li><a href="news.html?classid=1">行业动态</a></li>
  	 
            </div>
		  
           <div class="tip">
            <p> 交易大厅</p>
<p>&nbsp;</p>   	 
            </div>  
   
           
            
        </dd>
    </dl>  <div class="copyriht">
    	版权解释权归太原金属所有    
    </div></div>

   
</body>
</html>
